from enum import Enum, unique, auto


@unique
class ErrorLogType(Enum):
    """
    指明 ERROR level 日志的类型
    """
    TOKEN_ERROR = auto()        # token 错误
    NOT_FOUNT_ERROR = auto()    # 404 错误
    SERVLET_PATH_MATCH_FAILED = auto()  # Servlet path match failed
    DFMC_EXCEPTION = auto()     # DfmcException 请求异常的错误
    OTHER = auto()              # 其他的错误类型，不管了


class DriveActionSettingsName:
    """
    驾驶行为感知的位于 mongo 中的配置项名称
    """
    MAP_INFO = 'drive_action_map_info'
    RENTER_MARK = 'drive_action_renter_mark'
    USER_FEEDBACK = 'drive_action_user_feedback'
    VIOLATION_SHOW = 'drive_action_rule_violation'
    VIOLATION_RANK = 'drive_action_violation_rank'
    COMPLAINT_TENDENCY = 'drive_action_compliant_tendency'
    COMPLAINT_SHOW = 'drive_action_renter_complaint'
